package com.threeti.mecool.core.application.acl;

import org.springframework.dao.DataAccessException;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

import com.threeti.mecool.core.domain.model.acl.User;

public interface UserService extends UserDetailsService {

  /** SpringSecuity方法实现 */
  @Override
  UserAdapter loadUserByUsername(String loginName) throws UsernameNotFoundException, DataAccessException;

  /** 用户注册 */
  User register(String loginName, String name, String password);
  
  User getUserFromSession();

}
